CXXFLAGS = -O2
INCPATH = -I../libutil/include
LIBRARY = ../libutil/libutil.a -lpthread
HEADERS = dvping.h \
	../dvmcast/rtp.h \
	../dvmcast/Constants.h

SOURCES = dvping.cpp \
	main.cpp

OBJS = dvping.o \
	main.o

../bin/dvping: Makefile $(OBJS) $(LIBRARY)
	g++ $(OBJS) $(LIBRARY) -o ../bin/dvping

../libutil/libutil.a:
	make -C ../libutil

dvping.o: $(HEADERS) dvping.cpp
	g++ -c $(CXXFLAGS) $(INCPATH) dvping.cpp

main.o: $(HEADERS) main.cpp
	g++ -c $(CXXFLAGS) $(INCPATH) main.cpp

clean:
	rm -f $(OBJS) ../bin/dvping
